import request from '../request'

//获取广告位
export const getADwei = (params: any) => {
    console.log(params)
    return request({
        url: '/adwei',
        method: 'get',
        params
    })
}
//添加广告位
export const addADwei = (data: any) => {
    console.log(data)
    return request({
        url: '/adwei',
        method: 'post',
        data
    })
}
//修改广告位
export const editADwei = (data: any) => {
    console.log(data.id)
    return request({
        url: `/adwei/${data.id}`,
        method: 'put',
        data
    })
}
//删除广告位
export const delADwei = (data: any) => {
    console.log(data)
    return request({
        url: `/adwei/${data.id}`,
        method: 'delete',
        data
    })
}